# Contributor: Noel Kuntze <noel.kuntze@thermi.consulting>
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
pkgname=py3-requests-gssapi
_pkgname=requests-gssapi
pkgver=1.2.3
pkgrel=2
pkgdesc="GSSAPI (HTTP negotiate) authentication handler for Python Requests"
url="https://github.com/pythongssapi/requests-gssapi"
arch="noarch"
license="ISC"
depends="python3 py3-python-gssapi py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pythongssapi/requests-gssapi/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib pytest -vv --color=yes
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
5645785e4d96e935fde73395386f3622b1463e91cafddc07e9b55a990c977b136ccd440cbc190801b966e9c0ec083d2a270f06cb6e4f754093cc7343b0935994  py3-requests-gssapi-1.2.3.tar.gz
"
